/**
* common js
*/
function userLogin(){   
	if(document.formLogin.txt_UserName.value=="" || document.formLogin.txt_UserName.value=="您注册时的Email地址") {  
      	alert('您注册时的Email地址！'); 
		document.formLogin.txt_UserName.focus();
	} 
	else if(document.formLogin.txt_UserPwd.value==""){ 
      	alert('请输入密码！');  
		document.formLogin.txt_UserPwd.focus();
	}
}
function setTab(showTab,selfObj,showNumber,showTitle){
	var tab = document.getElementById(showTab).getElementsByTagName(showTitle);
	var tablength = tab.length;
	for(i=0; i<tablength; i++){
		tab[i].className = "";
	}
	selfObj.parentNode.className = "on";

	for(i=1; j=document.getElementById(showTab+i); i++){
		j.style.display = "none";
	}

	document.getElementById(showTab+showNumber).style.display = "block";	

}